package com.xhw.service.impl;

import com.xhw.mapper.UserMapper;
import com.xhw.po.SysUser;
import com.xhw.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用户业务实现层
 *
 * @author Administrator
 * @date 2020/12/22 15:12
 */
@Service
public class UserServiceImpl implements UserService {

    //注入mapper接口
    @Autowired(required = false)
    private UserMapper userMapper;

    /**
     * 通过用户名（手机号）和密码查询用户是否存在
     * @param tel
     * @param password
     */
    @Override
    public SysUser findUserByTelAndPassword(String tel, String password) {
        return  userMapper.findUserByTelAndPassword(tel,password);
    }

}
